package com.dinggao.bangda.initview;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.dinggao.bangda.R;
import com.dinggao.bangda.interaction.CarownerFragment;
import com.dinggao.bangda.interaction.PassengerFragment;

/**
 * Created by Administrator on 2017/4/20.
 * 未用
 */

public class PeopleMain extends Fragment{
    private View view;
    private CarownerFragment carownerFragment;
    private FragmentTransaction fragmentTransaction;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        if (view == null) {
            view = inflater.inflate(R.layout.frag_carowner, null);
            return view;
        }
        return view;
    }
    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        carownerFragment = new CarownerFragment();
        fragmentTransaction = getChildFragmentManager().beginTransaction();
        fragmentTransaction.add(R.id.frag_carowner,carownerFragment).commit();
    }

}
